package com.talent.web.enums;

/**
 * @ClassName：PermissionType
 * @Author: hszhou
 * @Date: 2024/10/25 8:30
 * @Description: 必须描述类做什么事情, 实现什么功能
 */
public enum PermissionType {
    P(0, "父级"),
    MENU(1, "菜单"),
    BUTTON(2,"按钮"),
    LINK(3,"连接"),
  ;

    /**
     * 错误码
     */
    private final Integer code;

    /**
     * 错误描述
     */
    private final String message;

    PermissionType(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
